package util;

import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionBindingEvent;

public class AttributeListener implements HttpSessionAttributeListener {
    @Override
    public void attributeAdded(HttpSessionBindingEvent event) {
        System.out.println("session存值："+event.getName()+","+event.getValue());

    }

    @Override
    public void attributeRemoved(HttpSessionBindingEvent event) {
        System.out.println("session移除数据");

    }

    @Override
    public void attributeReplaced(HttpSessionBindingEvent event) {

    }
}
